<div class="col-md-4" style="padding-right: 0px; padding-left: 30px;">

    <if condition="CONTROLLER_NAME eq 'Index' && ACTION_NAME eq 'index' ">
        <aside id="posts-3">
            <div class="widget">
                <h4 class="title">个人专区</h4>
                <div class="content">
                    <div class="account-img">
                        <img alt="TK" src="__HOME__/images/photo.jpg" style="width: 100px;height: 100px;">
                    </div>
                    <div class="account-c">
                        <a href="javascript:;" class="account">TK</a>
                        <a href="javascript:;" class="signature">如果还有梦,别只是去想...</a>
                        <a href="http://git.oschina.net/ipking" class="links" target="_blank">git.oschina.net/ipking</a>
                    </div>

                </div>

            </div>
        </aside>
    </if>

    <aside id="posts-1">
        <div class="hot-article">
            <div class="panel-heading">
                <span>浏览排行</span>
            </div>
            <ul class="list-group">
                <?php $titleData = M('article')->order("hits DESC")->field('aid,title,hits')->limit(6)->select();?>
                <foreach name="titleData" item="vv">
                    <li class="list-group-item">
                      <span class="post-title">
                        <a href="/a/{$vv['aid']}.html" title="{$vv['title']}">{:msubstr($vv['title'],0,25)}</a>
                      </span>
                      <span class="badge">{$vv['hits']}</span>
                    </li>
                </foreach>
            </ul>
        </div>
    </aside>

    <aside id="posts-2">
        <div class="widget">
            <h4 class="title">标签云</h4>
            <div class="tag-cloud">
                <?php $tagsData = M('tags')->select();?>
                <foreach name="tagsData" item="t">
                    <a href="/st/{$t['tid']}.html" data-st="{$t['tid']}">{$t.tname}</a>
                </foreach>
            </div>

        </div>

    </aside>

</div>